<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <if condition="I('get.id') gt 1">
                <tr>
                    <td class="label3" style="width: 45%">角色列表：</td>
                    <td>
                        <?php foreach($roleData as $k =>$v):
                        if(in_array($v['id'],$roleId))
                        $check ='checked = " checked "';
                        else
                        $check ='';
                        ?>
                       <input <?php echo $check?> type="checkbox" name="role_id[]" value="{$v.id}"/>
                            {$v.role_name}
                        <?php endforeach ?>
                    </td>
                </tr>
            <tr>
                </if>
                <td class="label3" style="width: 45%">用户名：</td>
                <td>
                    <input  type="text" name="username" value="<?php echo $data['username']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label3">密码：</td>
                <td>
                    <input type="password" size="25" name="password" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<script>
</script>